package com.piece.file.support;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@ApiModel(value = "大文件上传结果")
public class ChunkResult implements Serializable {

    @ApiModelProperty(value = "是否跳过上传,秒传功能")
    private boolean skipUpload;

    @ApiModelProperty(value = "已经上传的文件块编号")
    private List<Integer> uploadedChunks;

    @ApiModelProperty(value = "返回结果码")
    private String status;

    @ApiModelProperty(value = "返回结果信息")
    private String message;

    @ApiModelProperty(value = "已上传完整附件的地址")
    private String location;
}
